﻿namespace YbxLibrary
{
    public class YbEntity
    {
        public YbEntity() { 
        
        }

        /// <summary>
        /// 构造方法1
        /// </summary>
        /// <param name="infno">交易编号</param>
        /// <param name="input">数据内容</param>
        public YbEntity(string infno,string input)
        {
            this.infno = infno;
            this.input = input;
        }

        /// <summary>
        /// 构造2
        /// </summary>
        /// <param name="infno">交易编号</param>
        /// <param name="input">数据data</param>
        /// <param name="opter">操作人</param>
        /// <param name="opter_name">操作人姓名</param>
        /// <param name="sign_no">签到编号</param>
        public YbEntity(string infno, string input,string opter,string opter_name,string sign_no)
        {
            this.infno = infno;
            this.input = input;
            this.opter = opter;
            this.opter_name = opter_name;
            this.sign_no = sign_no;
        }

        /// <summary>
        /// 构造3
        /// </summary>
        /// <param name="infno"></param>
        /// <param name="input"></param>
        /// <param name="mdtrtarea_admdvs"></param>
        /// <param name="insuplc_admdvs"></param>
        public YbEntity(string infno, string input, string mdtrtarea_admdvs, string insuplc_admdvs)
        {
            this.infno = infno;
            this.input = input;
            this.mdtrtarea_admdvs = mdtrtarea_admdvs;
            this.insuplc_admdvs = insuplc_admdvs;
        }

        /// <summary>
        /// 构造4
        /// </summary>
        /// <param name="infno"></param>
        /// <param name="input"></param>
        /// <param name="opter"></param>
        /// <param name="opter_name"></param>
        /// <param name="sign_no"></param>
        /// <param name="mdtrtarea_admdvs"></param>
        /// <param name="insuplc_admdvs"></param>
        public YbEntity(string infno, string input, string opter, string opter_name, string sign_no,string mdtrtarea_admdvs,string insuplc_admdvs)
        {
            this.infno = infno;
            this.input = input;
            this.opter = opter;
            this.opter_name = opter_name;
            this.sign_no = sign_no;
            this.mdtrtarea_admdvs = mdtrtarea_admdvs;
            this.insuplc_admdvs = insuplc_admdvs;
        }

        /// <summary>
        /// 交易编号
        /// </summary>
        public string infno { set; get; } = string.Empty;
        /// <summary>
        /// 就医地医保区划
        /// </summary>
        public string mdtrtarea_admdvs { set; get; } = string.Empty;
        /// <summary>
        /// 参保地医保区划
        /// </summary>
        public string insuplc_admdvs { set; get; } = string.Empty;
        /// <summary>
        /// 经办人
        /// </summary>
        public string opter { set; get; } = string.Empty;
        /// <summary>
        /// 经办人姓名
        /// </summary>
        public string opter_name { set; get; } = string.Empty;
        /// <summary>
        /// 交易签到流水号
        /// </summary>
        public string sign_no { set; get; } = string.Empty;
        /// <summary>
        /// 输入input字符串
        /// </summary>
        public string input { set; get; } = string.Empty;
        /// <summary>
        /// 交易完整输入
        /// </summary>
        public string input_json { set; get; } = string.Empty;

        /// <summary>
        /// 交易完整输出
        /// </summary>
        public string output_json { set; get; } = string.Empty;
        /// <summary>
        /// 交易状态码
        /// </summary>
        public int infcode { set; get; } = -1;
        /// <summary>
        /// 错误信息
        /// </summary>
        public string err_msg { set; get; } = string.Empty;
        /// <summary>
        /// 返回数据体
        /// </summary>
        public string output { set; get; } = string.Empty;
    }
}
